// To parse this JSON data, do
//
//     final channelModel = channelModelFromJson(jsonString);

import 'dart:convert';

ChannelModel channelModelFromJson(String str) => ChannelModel.fromJson(json.decode(str));

String channelModelToJson(ChannelModel data) => json.encode(data.toJson());

class ChannelModel {
  ChannelModel({
    this.applyType,
    this.number,
    this.address,
    this.applyArea,
    this.phone,
    this.backRateConfig,
    this.cardId,
    this.visual,
    this.channelName,
    this.id,
  });

  String? applyType;
  String? number;
  String? address;
  String? applyArea;
  String? phone;
  String? backRateConfig;
  String? cardId;
  String? visual;
  String? channelName;
  String? id;

  factory ChannelModel.fromJson(Map<String, dynamic> json) => ChannelModel(
        applyType: json["applyType"],
        number: json["number"],
        address: json["address"],
        applyArea: json["applyArea"],
        phone: json["phone"],
        backRateConfig: json["backRateConfig"],
        cardId: json["cardId"],
        visual: json["visual"],
        channelName: json["channelName"],
        id: json["id"],
      );

  Map<String, dynamic> toJson() => {
        "applyType": applyType,
        "number": number,
        "address": address,
        "applyArea": applyArea,
        "phone": phone,
        "backRateConfig": backRateConfig,
        "cardId": cardId,
        "visual": visual,
        "channelName": channelName,
        "id": id,
      };
}
